package com.roy.workbench.bookmark.domain;

import javax.persistence.Entity;
import javax.persistence.ManyToMany;
import javax.persistence.Table;
import java.util.Collection;

/**
 * Created by admin on 17-12-25.
 */
@Entity
@Table(name = "bm_tag")
public class Tag extends BaseEntity {
    private String name;

    @ManyToMany(mappedBy = "tags")
    private Collection<Bookmark> bookmarks;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

/*    public Collection<Bookmark> getBookmarks() {
        return bookmarks;
    }*/

    public void setBookmarks(Collection<Bookmark> bookmarks) {
        this.bookmarks = bookmarks;
    }
}
